# gozerlib/utils/xmpp.py
#
#

def stripped(userhost):

    """ strip resource from userhost. """

    return userhost.split('/')[0]

def resource(userhost):

    """ return resource of userhost. """

    try:
        return userhost.split('/')[1]
    except ValueError:
        return ""
